package com.gzy.rpsm_admin.mapper;

import com.github.pagehelper.Page;

import com.gzy.rpsm_admin.pojo.Room;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface RoomMapper {
    @Select("<script>select * from room  <where><if test='number != null and number !=\"\"'>room_code " +
            "like concat('%',#{number},'%')</if></where></script>")
    Page<Room> findAllRoom(@Param("number") String number);
}
